/**
 * Created by Administrator on 2018/4/26.
 */
define(function (require,exports,module) {
    require("./enter.css");
    var sTpl = require("./template.html");
    var VueComponent = Vue.extend({
        props:['parentData'],
        template: sTpl,
        methods:{

        },
        mounted:function() {
            var $this = this;
            axios.get(basepath+"/api/webframe/loginLog").then(function (response) {
                $this.loginCount = response.data.count;
                $this.loginLog =response.data.log;
            })
        }
        ,data:function(){

            return {
              loginLog:[],
              loginCount:0
            }
        },
        activated:function (){
                    messages.$emit('change','index');
                    messages.$emit('style',"min-height:739px;padding-bottom:20px;");
        }
    });

    module.exports = VueComponent;
})